🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / core / repository / src / commonMain / kotlin / org / meshtastic / core / repository / MeshActionHandler.kt
Displaying Raw • Download
core/repository/src/commonMain/kotlin/org/meshtastic/core/repository/MeshActionHandler.kt 936be3998f0fe49f58b8a0f9ff2c01e3cbd85609 (936be399) Text, 4.69 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.repository
Tff7b72import T7ee787org.meshtastic.core.model.DataPacket
Tff7b72import T7ee787org.meshtastic.core.model.MeshUser
Tff7b72import T7ee787org.meshtastic.core.model.Position
Tff7b72import T7ee787org.meshtastic.core.model.service.ServiceAction
T8b949e/** Interface for handling UI-triggered actions and administrative commands for the mesh. */
Tf0883e@SuppressTb4b4b4(Ta5d6ff"Ta5d6ffTooManyFunctionsTa5d6ff"Tb4b4b4)
Tff7b72interface T56d364MeshActionHandler Tb4b4b4{
T8b949e/** Processes a service action from the UI. */
Tff7b72suspend Tff7b72fun Td2a8ffonServiceActionTb4b4b4(Te6edf3actionTb4b4b4: Te6edf3ServiceActionTb4b4b4)
T8b949e/** Sets the owner of the local node. */
Tff7b72fun Td2a8ffhandleSetOwnerTb4b4b4(Te6edf3uTb4b4b4: Te6edf3MeshUserTb4b4b4, Te6edf3myNodeNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Sends a data packet through the mesh. */
Tff7b72fun Td2a8ffhandleSendTb4b4b4(Te6edf3pTb4b4b4: Te6edf3DataPacketTb4b4b4, Te6edf3myNodeNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Requests the position of a remote node. */
Tff7b72fun Td2a8ffhandleRequestPositionTb4b4b4(Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4, Te6edf3positionTb4b4b4: Te6edf3PositionTb4b4b4, Te6edf3myNodeNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Removes a node from the database by its node number. */
Tff7b72fun Td2a8ffhandleRemoveByNodenumTb4b4b4(Te6edf3nodeNumTb4b4b4: Tffa657IntTb4b4b4, Te6edf3requestIdTb4b4b4: Tffa657IntTb4b4b4, Te6edf3myNodeNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Sets the owner of a remote node. */
Tff7b72fun Td2a8ffhandleSetRemoteOwnerTb4b4b4(Te6edf3idTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4, Te6edf3payloadTb4b4b4: Te6edf3ByteArrayTb4b4b4)
T8b949e/** Gets the owner of a remote node. */
Tff7b72fun Td2a8ffhandleGetRemoteOwnerTb4b4b4(Te6edf3idTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Sets the configuration of the local node. */
Tff7b72fun Td2a8ffhandleSetConfigTb4b4b4(Te6edf3payloadTb4b4b4: Te6edf3ByteArrayTb4b4b4, Te6edf3myNodeNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Sets the configuration of a remote node. */
Tff7b72fun Td2a8ffhandleSetRemoteConfigTb4b4b4(Te6edf3idTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4, Te6edf3payloadTb4b4b4: Te6edf3ByteArrayTb4b4b4)
T8b949e/** Gets the configuration of a remote node. */
Tff7b72fun Td2a8ffhandleGetRemoteConfigTb4b4b4(Te6edf3idTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4, Te6edf3configTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Sets the module configuration of a remote node. */
Tff7b72fun Td2a8ffhandleSetModuleConfigTb4b4b4(Te6edf3idTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4, Te6edf3payloadTb4b4b4: Te6edf3ByteArrayTb4b4b4)
T8b949e/** Gets the module configuration of a remote node. */
Tff7b72fun Td2a8ffhandleGetModuleConfigTb4b4b4(Te6edf3idTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4, Te6edf3configTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Sets the ringtone of a remote node. */
Tff7b72fun Td2a8ffhandleSetRingtoneTb4b4b4(Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4, Te6edf3ringtoneTb4b4b4: Tffa657StringTb4b4b4)
T8b949e/** Gets the ringtone of a remote node. */
Tff7b72fun Td2a8ffhandleGetRingtoneTb4b4b4(Te6edf3idTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Sets canned messages on a remote node. */
Tff7b72fun Td2a8ffhandleSetCannedMessagesTb4b4b4(Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4, Te6edf3messagesTb4b4b4: Tffa657StringTb4b4b4)
T8b949e/** Gets canned messages from a remote node. */
Tff7b72fun Td2a8ffhandleGetCannedMessagesTb4b4b4(Te6edf3idTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Sets a channel configuration on the local node. */
Tff7b72fun Td2a8ffhandleSetChannelTb4b4b4(Te6edf3payloadTb4b4b4: Te6edf3ByteArray?Tb4b4b4, Te6edf3myNodeNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Sets a channel configuration on a remote node. */
Tff7b72fun Td2a8ffhandleSetRemoteChannelTb4b4b4(Te6edf3idTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4, Te6edf3payloadTb4b4b4: Te6edf3ByteArray?Tb4b4b4)
T8b949e/** Gets a channel configuration from a remote node. */
Tff7b72fun Td2a8ffhandleGetRemoteChannelTb4b4b4(Te6edf3idTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4, Te6edf3indexTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Requests neighbor information from a remote node. */
Tff7b72fun Td2a8ffhandleRequestNeighborInfoTb4b4b4(Te6edf3requestIdTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Begins editing settings on a remote node. */
Tff7b72fun Td2a8ffhandleBeginEditSettingsTb4b4b4(Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Commits settings edits on a remote node. */
Tff7b72fun Td2a8ffhandleCommitEditSettingsTb4b4b4(Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Reboots a remote node into DFU mode. */
Tff7b72fun Td2a8ffhandleRebootToDfuTb4b4b4(Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Requests telemetry from a remote node. */
Tff7b72fun Td2a8ffhandleRequestTelemetryTb4b4b4(Te6edf3requestIdTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4, Te6edf3typeTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Requests a remote node to shut down. */
Tff7b72fun Td2a8ffhandleRequestShutdownTb4b4b4(Te6edf3requestIdTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Requests a remote node to reboot. */
Tff7b72fun Td2a8ffhandleRequestRebootTb4b4b4(Te6edf3requestIdTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Requests a remote node to reboot in OTA mode. */
Tff7b72fun Td2a8ffhandleRequestRebootOtaTb4b4b4(Te6edf3requestIdTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4, Te6edf3modeTb4b4b4: Tffa657IntTb4b4b4, Te6edf3hashTb4b4b4: Te6edf3ByteArray?Tb4b4b4)
T8b949e/** Requests a factory reset on a remote node. */
Tff7b72fun Td2a8ffhandleRequestFactoryResetTb4b4b4(Te6edf3requestIdTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Requests a node database reset on a remote node. */
Tff7b72fun Td2a8ffhandleRequestNodedbResetTb4b4b4(Te6edf3requestIdTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4, Te6edf3preserveFavoritesTb4b4b4: Tffa657BooleanTb4b4b4)
T8b949e/** Gets the connection status of a remote node. */
Tff7b72fun Td2a8ffhandleGetDeviceConnectionStatusTb4b4b4(Te6edf3requestIdTb4b4b4: Tffa657IntTb4b4b4, Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4)
T8b949e/** Updates the last used device address. */
Tff7b72fun Td2a8ffhandleUpdateLastAddressTb4b4b4(Te6edf3deviceAddrTb4b4b4: Tffa657String?Tb4b4b4)
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.05s